{
    "cells": [
        {
            "cell_type": "code",
            "execution_count": 1,
            "source": [
                "import plotly.express as px\n",
                "import vega_datasets \n",
                "\n",
                "df = vega_datasets.data.disasters()\n",
                "df['ID'] = range(1, len(df) + 1)\n",
                "df"
            ],
            "outputs": [
                {
                    "output_type": "execute_result",
                    "data": {
                        "text/plain": [
                            "                    Entity  Year   Deaths   ID\n",
                            "0    All natural disasters  1900  1267360    1\n",
                            "1    All natural disasters  1901   200018    2\n",
                            "2    All natural disasters  1902    46037    3\n",
                            "3    All natural disasters  1903     6506    4\n",
                            "4    All natural disasters  1905    22758    5\n",
                            "..                     ...   ...      ...  ...\n",
                            "798               Wildfire  2013       35  799\n",
                            "799               Wildfire  2014       16  800\n",
                            "800               Wildfire  2015       67  801\n",
                            "801               Wildfire  2016       39  802\n",
                            "802               Wildfire  2017       75  803\n",
                            "\n",
                            "[803 rows x 4 columns]"
                        ],
                        "text/html": [
                            "<div>\n",
                            "<style scoped>\n",
                            "    .dataframe tbody tr th:only-of-type {\n",
                            "        vertical-align: middle;\n",
                            "    }\n",
                            "\n",
                            "    .dataframe tbody tr th {\n",
                            "        vertical-align: top;\n",
                            "    }\n",
                            "\n",
                            "    .dataframe thead th {\n",
                            "        text-align: right;\n",
                            "    }\n",
                            "</style>\n",
                            "<table border=\"1\" class=\"dataframe\">\n",
                            "  <thead>\n",
                            "    <tr style=\"text-align: right;\">\n",
                            "      <th></th>\n",
                            "      <th>Entity</th>\n",
                            "      <th>Year</th>\n",
                            "      <th>Deaths</th>\n",
                            "      <th>ID</th>\n",
                            "    </tr>\n",
                            "  </thead>\n",
                            "  <tbody>\n",
                            "    <tr>\n",
                            "      <th>0</th>\n",
                            "      <td>All natural disasters</td>\n",
                            "      <td>1900</td>\n",
                            "      <td>1267360</td>\n",
                            "      <td>1</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>1</th>\n",
                            "      <td>All natural disasters</td>\n",
                            "      <td>1901</td>\n",
                            "      <td>200018</td>\n",
                            "      <td>2</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>2</th>\n",
                            "      <td>All natural disasters</td>\n",
                            "      <td>1902</td>\n",
                            "      <td>46037</td>\n",
                            "      <td>3</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>3</th>\n",
                            "      <td>All natural disasters</td>\n",
                            "      <td>1903</td>\n",
                            "      <td>6506</td>\n",
                            "      <td>4</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>4</th>\n",
                            "      <td>All natural disasters</td>\n",
                            "      <td>1905</td>\n",
                            "      <td>22758</td>\n",
                            "      <td>5</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>...</th>\n",
                            "      <td>...</td>\n",
                            "      <td>...</td>\n",
                            "      <td>...</td>\n",
                            "      <td>...</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>798</th>\n",
                            "      <td>Wildfire</td>\n",
                            "      <td>2013</td>\n",
                            "      <td>35</td>\n",
                            "      <td>799</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>799</th>\n",
                            "      <td>Wildfire</td>\n",
                            "      <td>2014</td>\n",
                            "      <td>16</td>\n",
                            "      <td>800</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>800</th>\n",
                            "      <td>Wildfire</td>\n",
                            "      <td>2015</td>\n",
                            "      <td>67</td>\n",
                            "      <td>801</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>801</th>\n",
                            "      <td>Wildfire</td>\n",
                            "      <td>2016</td>\n",
                            "      <td>39</td>\n",
                            "      <td>802</td>\n",
                            "    </tr>\n",
                            "    <tr>\n",
                            "      <th>802</th>\n",
                            "      <td>Wildfire</td>\n",
                            "      <td>2017</td>\n",
                            "      <td>75</td>\n",
                            "      <td>803</td>\n",
                            "    </tr>\n",
                            "  </tbody>\n",
                            "</table>\n",
                            "<p>803 rows × 4 columns</p>\n",
                            "</div>"
                        ]
                    },
                    "metadata": {},
                    "execution_count": 1
                }
            ],
            "metadata": {}
        }
    ],
    "metadata": {
        "orig_nbformat": 4,
        "language_info": {
            "name": "python",
            "version": "3.9.12",
            "mimetype": "text/x-python",
            "codemirror_mode": {
                "name": "ipython",
                "version": 3
            },
            "pygments_lexer": "ipython3",
            "nbconvert_exporter": "python",
            "file_extension": ".py"
        },
        "kernelspec": {
            "name": "python3",
            "display_name": "Python 3.9.12 64-bit ('ray-1.12.0': conda)"
        },
        "interpreter": {
            "hash": "675f82f11f466649689a1e6cc82b116b78c1554b0626873252b38d0490d6f672"
        }
    },
    "nbformat": 4,
    "nbformat_minor": 2
}